package com.ruoyi.project.NH.average_income_comparison.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 年度人均收入对比domain
 *！！！！！注意！！！！！
 * 该模块的domain了busi_income_data表、base_family_info表、base_family_member_info表
 * @author fhk
 * @date 2023-03-07
 */
public class AverageIncomeInfo extends BaseEntity{
    /**数据表id*/
    private Integer id;
    /**户编号*/
    private String fid;
    /**户主姓名*/
    private String name;
    /**身份证号*/
    private String idCard;
    /** 自然村 */
    private Integer natVillage;
    /**本年人均纯收入*/
    private Double avgIncome = 0.0;
    /**上一年人均收入**/
    private Double lastAvgIncome;
    /** 所属年份 */
    private Integer reportYear;
    /** 返贫状态，0为未返贫，1为返贫 */
    private Integer isBackIntoPoverty = 0;

    public AverageIncomeInfo(AverageIncomeInfo averageIncomeInfo) {
        this.setId(averageIncomeInfo.id);
        this.setFid(averageIncomeInfo.fid);
        this.setName(averageIncomeInfo.name);
        this.setIdCard(averageIncomeInfo.idCard);
        this.setNatVillage(averageIncomeInfo.natVillage);
        this.setAvgIncome(averageIncomeInfo.avgIncome);
        this.setReportYear(averageIncomeInfo.reportYear);
        this.setIsBackIntoPoverty(averageIncomeInfo.isBackIntoPoverty);
    }
    public AverageIncomeInfo(){};

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFid() {
        return fid;
    }

    public void setFid(String fid) {
        this.fid = fid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Integer getNatVillage() {
        return natVillage;
    }

    public void setNatVillage(Integer natVillage) {
        this.natVillage = natVillage;
    }

    public Double getAvgIncome() {
        return avgIncome;
    }

    public void setAvgIncome(Double avgIncome) {
        this.avgIncome = avgIncome;
    }

    public Double getLastAvgIncome() {
        return lastAvgIncome;
    }

    public void setLastAvgIncome(Double lastAvgIncome) {
        this.lastAvgIncome = lastAvgIncome;
    }

    public Integer getReportYear() {
        return reportYear;
    }

    public void setReportYear(Integer reportYear) {
        this.reportYear = reportYear;
    }

    public Integer getIsBackIntoPoverty() {
        return isBackIntoPoverty;
    }

    public void setIsBackIntoPoverty(Integer isBackIntoPoverty) {
        this.isBackIntoPoverty = isBackIntoPoverty;
    }

    @Override
    public String toString() {
        return "AverageIncomeInfo{" +
                "id=" + id +
                ", fid='" + fid + '\'' +
                ", name='" + name + '\'' +
                ", idCard='" + idCard + '\'' +
                ", natVillage=" + natVillage +
                ", avgIncome=" + avgIncome +
                ", reportYear=" + reportYear +
                ", isBackIntoPoverty=" + isBackIntoPoverty +
                '}';
    }
}
